package zuoye;

public class Main {
    public static void main(String[] args) {
        ClassManager classManager = new ClassManager();
        GroupManager groupManager = new GroupManager();
        StudentManager studentManager = new StudentManager();
        RandomAttendance randomAttendance = new RandomAttendance(classManager, groupManager, studentManager);

        // 添加班级
        Class class1 = new Class("1", "Class 1");
        classManager.addClass(class1);

        // 添加班级
        Class class2 = new Class("2", "Class 2");
        classManager.addClass(class2);


        // 添加小组
        Group group1 = new Group("1", "Group 1", "1");
        groupManager.addGroup(group1);

        // 添加小组
        Group group2 = new Group("2", "Group 2", "2");
        groupManager.addGroup(group2);

        // 添加小组
        Group group3 = new Group("3", "Group 3", "3");
        groupManager.addGroup(group3);

        // 添加小组
        Group group4 = new Group("4", "Group 4", "4");
        groupManager.addGroup(group4);

        // 添加小组
        Group group5 = new Group("5", "Group 5", "5");
        groupManager.addGroup(group5);

        // 添加小组
        Group group6 = new Group("6", "Group 6", "6");
        groupManager.addGroup(group6);

        // 添加小组
        Group group7 = new Group("7", "Group 7", "7");
        groupManager.addGroup(group7);

        // 添加小组
        Group group8 = new Group("8", "Group 8", "8");
        groupManager.addGroup(group8);

        // 添加学生
        Student student1 = new Student("1", "A1", "1");
        studentManager.addStudent(student1);
        // 添加学生
        Student student2 = new Student("2", "A2", "1");
        studentManager.addStudent(student2);
        // 添加学生
        Student student3 = new Student("3", "A3", "2");
        studentManager.addStudent(student3);
        // 添加学生
        Student student4 = new Student("4", "A4", "2");
        studentManager.addStudent(student4);
        // 添加学生
        Student student5 = new Student("5", "A5", "3");
        studentManager.addStudent(student5);
        // 添加学生
        Student student6 = new Student("6", "A6", "3");
        studentManager.addStudent(student6);
        // 添加学生
        Student student7 = new Student("7", "A7", "4");
        studentManager.addStudent(student7);
        // 添加学生
        Student student8 = new Student("8", "A8", "4");
        studentManager.addStudent(student8);
        // 添加学生
        Student student9 = new Student("9", "A9", "5");
        studentManager.addStudent(student9);
        // 添加学生
        Student student10 = new Student("10", "A10", "5");
        studentManager.addStudent(student10);
        // 添加学生
        Student student11= new Student("11", "A11", "6");
        studentManager.addStudent(student11);
        // 添加学生
        Student student12= new Student("12", "A12", "6");
        studentManager.addStudent(student12);
        // 添加学生
        Student student13= new Student("13", "A13", "7");
        studentManager.addStudent(student13);
        // 添加学生
        Student student14= new Student("14", "A14", "7");
        studentManager.addStudent(student14);
        // 添加学生
        Student student15= new Student("15", "A15", "8");
        studentManager.addStudent(student15);
        // 添加学生
        Student student16= new Student("16", "A16", "8");
        studentManager.addStudent(student16);


        // 随机抽取班级、小组和学生，并记录考勤和成绩
        randomAttendance.randomSelectClassGroupStudent();

    }
}
